﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetPercent.aspx.cs" Inherits="Web.admin.InnerManage.AwardManage.SetPercent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.form.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/function.js" type="text/javascript"></script>
    <script src="../../js/checkEmpty.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../../images/main_hl.gif" alt="" /></td>
                        <td ><img src="../../images/main_hl2.gif" alt="" /></td>
                        <td class="topNav"><span>添加用户</span></td>
                        <td><img src="../../images/main_hr.gif" alt="" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle"style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;用户管理&gt;添加用户</div>
            <div class="tools_box">
                <div id="toolbar" class="tools_bar" runat="server">
                    <asp:LinkButton runat="server" OnClientClick="return confirm( '重置之后将删除学生的等级，确定要重新设置吗？ ');"  OnClick="btn_Delete_Click"
                    CssClass="tools_btn" ID="btn_Delete"><span><b class="delete">重新设置</b></span></asp:LinkButton>
                </div>
            </div>
            <div class="submitTable">
                <table class="check_table">
                    <tr>
                        <th>
                            所属竞赛
                        </th>
                        <td>
                            <asp:Label runat="server" ID="lb_ConName"></asp:Label>
                        </td>
                    </tr>
                    <asp:Repeater runat="server" ID="rp_award">
                        <ItemTemplate>
                            <tr>
                                <th>
                                    <%#Eval("AWA_NAME")%>
                                    <asp:HiddenField ID="HF_id" runat="server" Value='<%#Eval("AWA_ID") %>' />
                                </th>
                                <td>
                                    <asp:TextBox runat="server" ID="tb_persent" Width="20">
                                    </asp:TextBox><label>%</label>
                                    <asp:TextBox runat="server" ID="tb_order" Width="10" Text = '<%#Container.ItemIndex  %>'></asp:TextBox>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:Repeater runat="server" ID="rp_update">
                        <ItemTemplate>
                            <tr>
                                <th>
                                    <%#((Model.BoPercent)Container.DataItem).awards.AWA_NAME%>
                                    <asp:HiddenField ID="HF_id" runat="server" Value='<%#((Model.BoPercent)Container.DataItem).PER_ID %>' />
                                </th>
                                <td>
                                    <asp:TextBox runat="server" ID="tb_persent" Width="20" Text='<%#((Model.BoPercent)Container.DataItem).PER_PERSENT%>'>
                                    </asp:TextBox><label>%</label>
                                    <asp:TextBox runat="server" ID="tb_order" CssClass="txt_order" Width="10" Text='<%#((Model.BoPercent)Container.DataItem).PER_ORDER %>'></asp:TextBox>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <th></th>
                        <td>
                            <asp:CheckBox runat="server" ID="cb_update" Text="已经录入学生成绩，直接生成学生获奖信息" />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <asp:Button runat="server"  OnClick="AddPersent" CssClass="btn_reset" Text="确定设置"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
